#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<string.h>
void reverse_string(char* string)
{
    char* p = string;
    int z = 0;
    while (*string++)
    {
        z++;
    }
    string -= 2;
    for (int i = 0; i < z / 2; i++)
    {
        char x = *p;
        *p = *string;
        *string = x;
        string--;
        p++;
    }
}
int main()
{
    char a[100] = { 0 };
    scanf("%s", a);
    reverse_string(a);
    printf("%s", a);
    return 0;
}